package com.htthorizon.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.htthorizon.common.core.annotation.Excel;
import com.htthorizon.common.core.web.domain.BaseEntity;

/**
 * 模型的元数据信息对象 model_meta
 *
 * @author mark
 * @date 2023-11-16
 */
public class ModelMeta extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 数据源ID */
    @Excel(name = "数据源ID")
    private Long sourceId;

    /** 模型ID */
    @Excel(name = "模型ID")
    private Long modelId;

    /** 模型名称 */
    @Excel(name = "模型名称")
    private String modelName;

    /** 编码 */
    @Excel(name = "编码")
    private String metaCode;

    /** 元数据字段名 */
    @Excel(name = "元数据字段名")
    private String metaFieldName;

    /** 元数据字段类型 */
    @Excel(name = "元数据字段类型")
    private String metaFieldType;

    /** 元数据字段描述 */
    @Excel(name = "元数据字段描述")
    private String metaFieldRemark;

    /** 排序 */
    @Excel(name = "排序")
    private Integer metaFieldSort;

    /** 版本 */
    @Excel(name = "版本")
    private Integer metaVersion;

    /** 元数据类型:0表1字段 */
    @Excel(name = "元数据类型:0表1字段")
    private Integer metaType;

    /** 状态：0正常-1已删除 */
    @Excel(name = "状态：0正常-1已删除")
    private Integer status;

    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public void setMetaCode(String metaCode)
    {
        this.metaCode = metaCode;
    }

    public String getMetaCode()
    {
        return metaCode;
    }
    public void setMetaFieldName(String metaFieldName)
    {
        this.metaFieldName = metaFieldName;
    }

    public String getMetaFieldName()
    {
        return metaFieldName;
    }
    public void setMetaFieldType(String metaFieldType)
    {
        this.metaFieldType = metaFieldType;
    }

    public String getMetaFieldType()
    {
        return metaFieldType;
    }
    public void setMetaFieldRemark(String metaFieldRemark)
    {
        this.metaFieldRemark = metaFieldRemark;
    }

    public String getMetaFieldRemark()
    {
        return metaFieldRemark;
    }
    public void setMetaFieldSort(Integer metaFieldSort)
    {
        this.metaFieldSort = metaFieldSort;
    }

    public Integer getMetaFieldSort()
    {
        return metaFieldSort;
    }
    public void setMetaVersion(Integer metaVersion)
    {
        this.metaVersion = metaVersion;
    }

    public Integer getMetaVersion()
    {
        return metaVersion;
    }
    public void setMetaType(Integer metaType)
    {
        this.metaType = metaType;
    }

    public Integer getMetaType()
    {
        return metaType;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("metaCode", getMetaCode())
                .append("metaFieldName", getMetaFieldName())
                .append("metaFieldType", getMetaFieldType())
                .append("metaFieldRemark", getMetaFieldRemark())
                .append("metaFieldSort", getMetaFieldSort())
                .append("metaVersion", getMetaVersion())
                .append("metaType", getMetaType())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
